package com.agann.model;

import java.util.HashMap;
import java.util.Map;



public abstract class Memory implements Memorable{
	
	protected String code;
	private Map<String, Double> score;
	
	
	
	public Memory(String code) {
		super();
		this.code = code;
		score = new HashMap<String, Double>();
	}
	
	//TODO Comparable Interface
	
	public String getCode() {
		return code;
	}
	
	public double getScore(String key) {
		return score.get(key);
	}
	
	public Map<String, Double> getScores() {
		return score;
	}
	
	protected void setScore(String key, Double value) {
		score.put(key, value);
	}
	
	
}
